import request from '@/utils/request'

// 查询企业品牌列表
export function listenterpriseBrand(query) {
  return request({
    url: '/enterprise/enterpriseBrand/list',
    method: 'get',
    params: query
  })
}

// 查询企业品牌详细
export function getenterpriseBrand(id) {
  return request({
    url: '/enterprise/enterpriseBrand/' + id,
    method: 'get'
  })
}

// 新增企业品牌
export function addenterpriseBrand(data) {
  return request({
    url: '/enterprise/enterpriseBrand',
    method: 'post',
    data: data
  })
}

// 修改企业品牌
export function updateenterpriseBrand(data) {
  return request({
    url: '/enterprise/enterpriseBrand',
    method: 'put',
    data: data
  })
}

// 删除企业品牌
export function delenterpriseBrand(id) {
  return request({
    url: '/enterprise/enterpriseBrand/' + id,
    method: 'delete'
  })
}

// 导出企业品牌
export function exportenterpriseBrand(query) {
  return request({
    url: '/enterprise/enterpriseBrand/export',
    method: 'get',
    params: query
  })
}